import request from './request'

// 新增简历
export const addResume = (params) => {
	return request.post('/business/resume',params)
} 

// // 删除信息
// export const detImageFile = (params) => {
// 	return request.delete('/resource/oss/'+ params)
// } 

// // 查询测试单表列表
// export const listChatConfig = (params) => {
// 	return request.get('/business/chatConfig/list',params)
// }

// // 查询测试单表信息
// export const listChatConfigInfo = (params) => {
// 	return request.get('/business/contractTask/' + params)
// }

// 新增模块
export const addResumeModel = (params) => {
	return request.post('/business/resumeModel',params)
} 

// 删除模块
export const detResumeModel = (params) => {
	return request.delete('/business/resumeModel/' + params)
} 

// 查询测试单表信息
export const getResumeModelList = (params) => {
	return request.get('/business/resumeTemplate/list', { params })
}

// 查看模块列表
export const getModelList = (params) => {
	return request.get('/business/resumeModel/list', params)
}

// 修改模块
export const updateResumeModel = (params) => {
	return request.put('/business/resumeModel', params)
}

// 校园经历相关接口
// 查询校园经历列表
export const getCampusExperienceList = () => {
	return request.get('/business/resumeCampusExperience/list')
}

// 获取校园经历详细信息
export const getCampusExperienceDetail = (id) => {
	return request.get(`/business/resumeCampusExperience/${id}`)
}

// 新增校园经历
export const addCampusExperience = (params) => {
	return request.post('/business/resumeCampusExperience', params)
}

// 修改校园经历
export const updateCampusExperience = (params) => {
	return request.put('/business/resumeCampusExperience', params)
}

// 删除校园经历
export const deleteCampusExperience = (ids) => {
	return request.delete(`/business/resumeCampusExperience/${ids}`)
}

// 根据校园经历生成经历描述
export const generateCampusExperienceDescription = (id) => {
	return request.get(`/business/resumeCampusExperience/generateOne/${id}`)
}

// 实习经历相关接口
// 查询实习经历列表
export const getInternshipExperienceList = () => {
	return request.get('/business/resumeInternshipExperience/list')
}

// 获取实习经历详细信息
export const getInternshipExperienceDetail = (id) => {
	return request.get(`/business/resumeInternshipExperience/${id}`)
}

// 新增实习经历
export const addInternshipExperience = (params) => {
	return request.post('/business/resumeInternshipExperience', params)
}

// 修改实习经历
export const updateInternshipExperience = (params) => {
	return request.put('/business/resumeInternshipExperience', params)
}

// 删除实习经历
export const deleteInternshipExperience = (ids) => {
	return request.delete(`/business/resumeInternshipExperience/${ids}`)
}

// 根据实习经历生成实习描述
export const generateInternshipExperienceDescription = (id) => {
	return request.get(`/business/resumeInternshipExperience/generateOne/${id}`)
}

// 自我评价相关接口
// 查询自我评价列表
export const getSelfEvaluationList = () => {
	return request.get('/business/resumeSelfEvaluation/list')
}

// 获取自我评价详细信息
export const getSelfEvaluationDetail = (id) => {
	return request.get(`/business/resumeSelfEvaluation/${id}`)
}

// 新增自我评价
export const addSelfEvaluation = (params) => {
	return request.post('/business/resumeSelfEvaluation', params)
}

// 修改自我评价
export const updateSelfEvaluation = (params) => {
	return request.put('/business/resumeSelfEvaluation', params)
}

// 删除自我评价
export const deleteSelfEvaluation = (ids) => {
	return request.delete(`/business/resumeSelfEvaluation/${ids}`)
}

// 根据个人信息生成自我评价
export const generateSelfEvaluation = (id) => {
	return request.get(`/business/resumeSelfEvaluation/generateOne/${id}`)
}

// 简历基本设置
export const updateResumeSettings = (data) => {
	return request.put('/business/resume/settings', data)
}

// 获取简历完整信息
export const getResumeDetail = (id) => {
	return request.get(`/business/resume/${id}`)
}

// 模块管理相关接口
// 获取模块列表
export const getModuleList = () => {
	return request.get('/business/resumeModule/list')
}

// 更新模块排序
export const updateModuleSort = (data) => {
	return request.put('/business/resumeModule/sort', data)
}

// 更新模块状态（显示/隐藏）
export const updateModuleStatus = (data) => {
	return request.put('/business/resumeModule/status', data)
}

